﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prueba.Model
{
    public class FdvVersion:ModelBase
    {
        public long Unid
        {
            get { return _Unid; }
            set
            {
                if (_Unid != value)
                {
                    _Unid = value;
                    OnPropertyChanged(UnidPropertyName);
                }
            }
        }
        private long _Unid;
        public const string UnidPropertyName = "Unid";

        public bool IsPublished
        {
            get { return _IsPublished; }
            set
            {
                if (_IsPublished != value)
                {
                    _IsPublished = value;
                    OnPropertyChanged(IsPublishedPropertyName);
                }
            }
        }
        private bool _IsPublished;
        public const string IsPublishedPropertyName = "IsPublished";

        public bool IsClosed
        {
            get { return _IsClosed; }
            set
            {
                if (_IsClosed != value)
                {
                    _IsClosed = value;
                    OnPropertyChanged(IsClosedPropertyName);
                }
            }
        }
        private bool _IsClosed;
        public const string IsClosedPropertyName = "IsClosed";

        public FdvVersion(long unid,bool isPublished,bool isClosed)
        {
            this._Unid = unid;
            this._IsPublished = isPublished;
            this._IsClosed = isClosed;
        }
    }
}
